﻿<%@ WebHandler Language="C#" Class="Handler" %>

using System;
using System.Web;

public class Handler : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        string server_domain = System.Configuration.ConfigurationManager.AppSettings["domain"];
        string server_ip = System.Configuration.ConfigurationManager.AppSettings["ip"];
        hiednsLib.DnsModifyClass hiedns = new hiednsLib.DnsModifyClass();
        hiedns.SetDnsSvr(server_domain, server_ip, 0);
        int ret = hiedns.Hie_DnsModify("DC07C1FC1674", "lhlxxxx", "1.1.1.1", 0);
        context.Response.Write(server_domain+";"+server_ip+";"+ret);
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}